import java.awt.Graphics;
import java.awt.Image;
import java.io.FileNotFoundException;

import javax.swing.ImageIcon;


public class level01 {
	
	
	
	
	
	/*
	public level01(){
		ImageIcon i  = new ImageIcon(getClass().getResource("files/tileUp.JPG"));
		Variable.tile[1] = i.getImage();
		
		Variable.destoryer = new ImageIcon(getClass().getResource("files/Destoryer.JPG")).getImage();
		
		
		readLevel();
	}
	*/
	
	public static void readLevel(){
		

		int num = 0;
		
		
		for(int i = 0; i <Variable.levelSize; i++){
			for(int o = 0; o <Variable.levelSize; o++){
				Variable.img[i][o] = Variable.tile[1];
				Variable.type[i][o] = 1;

				Variable.x[i] = i*32;
				Variable.y[o] = o*32;
				
				
				
				//System.out.println("X = "+i + "    Y ="+o);
				//System.out.println(o);
				if(i == 14 && o == 14){
					System.out.println("DoneLoadingBlankLevel");
					try {
						LoadLevel.load();
					} catch (FileNotFoundException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}

				
				
			}
		}
	}
	public static void paintLevel(Graphics g){
		
	}
}
